<template>
  <van-skeleton title :row="3" v-if="images.value == 0" />
  <div class="box" v-else>
    <van-nav-bar title="首页" left-arrow />
    <div class="mian">
     <search></search>
     <swipe :images="images"></swipe>
    </div>
  </div>
</template>

<script setup>
import { swiperdataApi } from '@/api/api';
import swipe from '@/components/swipe.vue';
import search from '@/components/search.vue';
import {ref} from "vue";

let images=ref([]);
const swipeFun=()=>{
    swiperdataApi().then((res)=>{
        images.value=res.data.message;
    })
}
swipeFun();



</script>

<style lang="scss" scoped></style>
